home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / D-G / DinkClass Shareware Package / DC Template App / DHLWindow.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-18  |  1.7 KB  |  72 lines  |  [TEXT/KAHL]

  1. /*
  2.     This is the class implementation for the DWindow subclass
  3.     DHLWindow, responcible for rendering the data on the screen
  4.     Mark Gross 10/10/92
  5. */
  6.  
  7. #include "DHLWindow.h"
  8.  
  9.  
  10.  
  11. DHLWindow::DHLWindow(void)
  12. {
  13.     //stub
  14. }
  15.  
  16. DHLWindow::~DHLWindow(void)
  17. {
  18.     //stub
  19. }
  20.  
  21.  
  22. Boolean DHLWindow::Init(DDocument *doc, Boolean hasColorWindows)
  23. {
  24.     Boolean inheritedSuccess;
  25.     
  26.     inheritedSuccess = inherited::Init(doc, hasColorWindows);
  27.     if( inheritedSuccess)
  28.     {
  29.         ;//do something....
  30.     }
  31.  
  32.     return (inheritedSuccess);
  33.     
  34. }// end of Init method
  35.  
  36.  
  37. void    DHLWindow::Draw(Rect *r)
  38. {
  39.     inherited::Draw(r);
  40.         // just pass it through untill I
  41.         // get the other classes implemented....
  42. }// end of do Draw Method...
  43.  
  44. /*
  45. //
  46. // Use the following stubb as a template on how to support applications which
  47. // allow the user to cancel out of a quit command.  This application doesn't 
  48. // need this method (thats why its commented out) but its included here 
  49. // to indicate how you support the "save cancel" feature of the Macintosh user interface.
  50. // This same function could be used in your Document subclass, but I tend to not 
  51. // use it there because its safer to use the Document's destructor.  As a rule of 
  52. // thumb, choose KillMeNext over the destructor in cases where the data to be freeed is
  53. // only referenced via the DWindow::fWindowPtr (which is deleted in DWinodw::KillMeNext).
  54. //
  55.  
  56. Boolean DHLWindow::KillMeNext(void)
  57. {
  58.     Boolean inheritedSuccess = FALSE;
  59.  
  60.     if(fAlive)// only do stuff if obect is NOT in the DeadHandler list
  61.     {
  62.         if(inheritedSuccess = inherited::KillMeNext())// inherited returns FALSE if user cancels...
  63.         {
  64.             ;// Kill your stuff here if your DWindow has things to
  65.             //  get rid of
  66.         }
  67.     }
  68.     return inheritedSuccess;
  69. }// end of KillMeNext method...
  70. */
  71.  
  72.